package com.whut.mapper;

import com.whut.model.Resultsinglechild;
import com.whut.v_model.ProblemNumSearch1;
import com.whut.v_model.ResultSingleChildWithPD;
import com.whut.v_model.ResultSingleChildWithParamName;

import java.util.List;

public interface ResultsinglechildMapper {
    int deleteByPrimaryKey(Integer mkey);

    int insert(Resultsinglechild record);

    int insertSelective(Resultsinglechild record);

    Resultsinglechild selectByPrimaryKey(Integer mkey);

    int updateByPrimaryKeySelective(Resultsinglechild record);

    int updateByPrimaryKey(Resultsinglechild record);

    /*my methods*/
    List<ResultSingleChildWithPD> getCurrentDoingList(int checkId,String userId);

    List<Resultsinglechild> getAllPersonalByCheckId(int checkId,String userId);

    void updateIsSubmit(int checkId,String userId);

    //通过用户Id和检查Id 找到检查过(resultsinglechild中已经置Y)的项列表（不需分页）
    List<Resultsinglechild> getFinByUserIdCheckId(int userId,int checkId);
    List<Resultsinglechild> getFinByUserIdCheckIdNew(int userId,int checkId);

    public ResultSingleChildWithParamName getRSCDetail(int mkey);

    int getCheckSystemByProjectId(int Mkey);
   //人员问题统计方法大集合
    List<Integer> getAllFirstIdByProjectInfoList(List<Integer> list,int userId);
    List<Integer> getAllSecondIdByProjectInfoList(int firstId,List<Integer> list,int userId);
    List<Integer> getAllThirdIdByProjectInfoList(int secondId,List<Integer> list,int userId);
    List<Integer> getAllFourthIdByProjectInfoList(int thirdId,List<Integer> list,int userId);
    List<Integer> getAllFifthIdByProjectInfoList(int fourthId,List<Integer> list,int userId);
    List<Integer> getAllSixthIdByProjectInfoList(int fifthId,List<Integer> list,int userId);
    List<Integer> getAllNextIdByFather(int checkId,int number,String preNum,int userId);
    int getAllProblemNumForStatistic(int checkId,int number,String preNum,int userId);
    List<Integer> getAllTaskIdByCheckItemsAndCheckId(int checkId,int checkItemsId,String name,int userId);
    ProblemNumSearch1 getProblemSearch1Info(int checkId, int taskId, int checkItemsId, String name);
    int  getProblemNum(int checkId,int taskId,int checkItemsId,String name,int userId);

    List<Resultsinglechild> getEquipNumByChecker(int projectId, int firstId, int fourthId, int checker);

    String selectIsNewByMkey(int mkey);

    Object getRSCDetailNew(int mkey);

    List<String> getCheckerByCheckIdProjectIdLastId(Integer checkId,Integer projectId,Integer fourthId);
}